home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume9 / siotools / patch03 < prev    next >
Encoding:
Text File  |  1989-12-21  |  4.8 KB  |  165 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v09i086: siotools patch 3
  3. from: wht%n4hgf@gatech.edu (Warren Tucker)
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 9, Issue 86
  7. Submitted-by: wht%n4hgf@gatech.edu (Warren Tucker)
  8. Archive-name: siotools/patch03
  9.  
  10. #!/bin/sh
  11. # This is a shell archive (shar 3.04)
  12. # made 12/21/1989 21:04 UTC by gatech!kd4nc!n4hgf!wht (wht%n4hgf@gatech.edu)
  13. # Source directory /u4/src/uusnap/release
  14. #
  15. # siotools v09i044/v09i45 Patch 3
  16. # This patch adds RTSFLOW and CTSFLOW display to detail status.
  17. #
  18. # Just unshar in the siotools source directory and type 'sh PATCH.3'
  19. #
  20. # existing files WILL be overwritten
  21. #
  22. # This shar contains:
  23. #    PATCH.3
  24. #
  25. touch 2>&1 | fgrep '[-amc]' > /tmp/s3_touch$$
  26. if [ -s /tmp/s3_touch$$ ]
  27. then
  28.     TOUCH=can
  29. else
  30.     TOUCH=cannot
  31. fi
  32. rm -f /tmp/s3_touch$$
  33. echo "x - extracting PATCH.3 (Text)"
  34. sed 's/^X//' << 'SHAR_EOF' > PATCH.3 &&
  35. X:
  36. X#----------------------------------------------------------------------
  37. X# siotools v09i044/v09i45 Patch 3
  38. X# 1. siomon "Initializing" status was not refreshed until init done :-)
  39. X# 2. Add RTSFLOW and CTSFLOW to detail status for XENIX & SCO UNIX
  40. X#----------------------------------------------------------------------
  41. X#+:EDITS:
  42. X#:12-21-1989-16:02-wht-creation
  43. X
  44. Xsed -e 's/^P//' << DIFF_EOF | patch
  45. XP*** siomon.c    Mon Dec  4 18:28:00 1989
  46. XP--- ../siomon.c    Thu Dec 21 15:21:09 1989
  47. XP***************
  48. XP*** 1,5
  49. XP  /* CHK=0x4E4E */
  50. XP! char *revision = "1.30";
  51. XP  /*+-------------------------------------------------------------------------
  52. XP      siomon.c -- watch XENIX/UNIX serial I/O
  53. XP      ...!gatech!kd4nc!n4hgf!wht
  54. XP
  55. XP--- 1,5 -----
  56. XP  /* CHK=0x4E4E */
  57. XP! char *revision = "1.32";
  58. XP  /*+-------------------------------------------------------------------------
  59. XP      siomon.c -- watch XENIX/UNIX serial I/O
  60. XP      ...!gatech!kd4nc!n4hgf!wht
  61. XP***************
  62. XP*** 51,56
  63. XP    regarding screen and CPU efficiency in the original itpmon.c for Pyramid
  64. XP  --------------------------------------------------------------------------*/
  65. XP  /*+:EDITS:*/
  66. XP  /*:12-04-1989-16:45-wht-add more to detail */
  67. XP  /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
  68. XP  /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
  69. XP
  70. XP--- 51,57 -----
  71. XP    regarding screen and CPU efficiency in the original itpmon.c for Pyramid
  72. XP  --------------------------------------------------------------------------*/
  73. XP  /*+:EDITS:*/
  74. XP+ /*:12-21-1989-15:20-wht-version number chg - CTSFLOW/RTSFLOW */
  75. XP  /*:12-04-1989-16:45-wht-add more to detail */
  76. XP  /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
  77. XP  /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
  78. XP***************
  79. XP*** 429,434
  80. XP      move(4,0);
  81. XP      standout();
  82. XP      addstr("  initializing  ");
  83. XP      if(cptr = kmem_init_tty())
  84. XP      {
  85. XP          move(4,0);
  86. XP
  87. XP--- 430,436 -----
  88. XP      move(4,0);
  89. XP      standout();
  90. XP      addstr("  initializing  ");
  91. XP+     refresh();
  92. XP      if(cptr = kmem_init_tty())
  93. XP      {
  94. XP          move(4,0);
  95. XP*** wintty.c    Mon Dec  4 18:28:00 1989
  96. XP--- ../wintty.c    Thu Dec 21 15:20:09 1989
  97. XP***************
  98. XP*** 17,22
  99. XP  
  100. XP  --------------------------------------------------------------------------*/
  101. XP  /*+:EDITS:*/
  102. XP  /*:12-04-1989-15:40-wht-creation */
  103. XP  
  104. XP  #include <curses.h>
  105. XP
  106. XP--- 17,23 -----
  107. XP  
  108. XP  --------------------------------------------------------------------------*/
  109. XP  /*+:EDITS:*/
  110. XP+ /*:12-21-1989-15:18-wht-display CTSFLOW and RTSFLOW if defined */
  111. XP  /*:12-04-1989-15:40-wht-creation */
  112. XP  
  113. XP  #include <curses.h>
  114. XP***************
  115. XP*** 80,85
  116. XP      {  3, 23, "CREAD",  CFLAG, CREAD },
  117. XP      {  3, 31, "HUPCL",  CFLAG, HUPCL },
  118. XP      {  3, 39, "CLOCAL", CFLAG, CLOCAL },
  119. XP      {  4,  7, "ISIG",   LFLAG, ISIG },
  120. XP      {  4, 15, "ICANON", LFLAG, ICANON },
  121. XP      {  4, 23, "XCASE",  LFLAG, XCASE },
  122. XP
  123. XP--- 81,92 -----
  124. XP      {  3, 23, "CREAD",  CFLAG, CREAD },
  125. XP      {  3, 31, "HUPCL",  CFLAG, HUPCL },
  126. XP      {  3, 39, "CLOCAL", CFLAG, CLOCAL },
  127. XP+ #ifdef RTSFLOW
  128. XP+     {  3, 46, "RTSFLO", CFLAG, RTSFLOW },
  129. XP+ #endif
  130. XP+ #ifdef CTSFLOW
  131. XP+     {  3, 53, "CTSFLO", CFLAG, CTSFLOW },
  132. XP+ #endif
  133. XP      {  4,  7, "ISIG",   LFLAG, ISIG },
  134. XP      {  4, 15, "ICANON", LFLAG, ICANON },
  135. XP      {  4, 23, "XCASE",  LFLAG, XCASE },
  136. XP***************
  137. XP*** 169,175
  138. XP  cflag_to_baud_d_p_s(cflag)
  139. XP  int cflag;
  140. XP  {
  141. XP! register char * cptr;
  142. XP  static char rtnstr[16];
  143. XP  
  144. XP      strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
  145. XP
  146. XP--- 176,182 -----
  147. XP  cflag_to_baud_d_p_s(cflag)
  148. XP  int cflag;
  149. XP  {
  150. XP! register char *cptr;
  151. XP  static char rtnstr[16];
  152. XP  
  153. XP      strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
  154. XDIFF_EOF
  155. Xecho 'Patch 3 applied.'
  156. Xexit 0
  157. SHAR_EOF
  158. chmod 0755 PATCH.3 || echo "restore of PATCH.3 fails"
  159. if [ $TOUCH = can ]
  160. then
  161.     touch -m 1221160389 PATCH.3
  162. fi
  163. exit 0
  164.  
  165.